package cn.itrip.beans.dtos;


import lombok.Getter;

@Getter
public enum ErrorCode {
    SUCCESS("true", "0", "成功"),
    AUTH_UNKNOWN("false", "300001", "未知错误"),
    AUTH_TOKEN_INVALID("false", "310001", "身份验证令牌无效"),
    AUTH_USER_ALREADY_NOTEXISTS("false", "310002", "认证用户已经没有注册"),
    AUTH_PARAMETER_ERROR("false", "310003", "身份验证参数错误"),
    AUTH_REPLACEMENT_FAILED("false", "310004", "身份验证替换失败"),
    BIZ_PASS_VALUE_NULL("false", "110001", "传值为空"),
    QUERY_ERROR("false","100001","查询出现错误"),
    ADD_THE_ERROR("false","100002","添加错误"),
    IS_GREATER_THAN_THE_ERROR("false","100005","每个房间只能居住三人,你已经超标。"),
    CONTENT_ACQUISITION_ERROR("false","100003","获取失败"),
    CONTENT_IS_EMPTY("false","100004","内容为空");
    /**
     * 判断系统是否出错做出相应的true或者false的返回，与业务无关，出现各种异常
     */
    private String success;
    /**
     * 该错误码为自定义，一般0表示无错
     */
    private String errorCode;
    /**
     * 对应的提示信息
     */
    private String msg;

    ErrorCode(String success, String errorCode, String msg) {
        this.success = success;
        this.errorCode = errorCode;
        this.msg = msg;
    }

}
